package com.example.demo.service;


import com.example.demo.bean.Admin;
import com.example.demo.dao.AdminDao;
import com.example.demo.factory.AdminDaoFactory;

public class AdminService {
    private AdminDao adminDao;

    public AdminService() {
        this.adminDao = AdminDaoFactory.getAdminDao();
    }

    public Admin adminLoginService(Admin admin) {
        return adminDao.adminLogin(admin);
    }
}
